<?php

class Controller_Home extends Controller_Site
{
	public function before()
	{
		parent::before();		
		Asset::js(array('plugins/jquery.avia-slider.js'), array(), 'jquery', false);
	}
	
	public function action_index()
	{
		// set title
		$this->title('cSeeker');

		// service types
		$service_types = array('' => 'Type of service');
		foreach(Model_Service_Type::find('all') as $s)
		{
			$service_types[$s->id] = $s->name;
		}
		$this->set('service_types', $service_types);

		// number users
		$number_users = array();
		for($i = 1; $i <= 10; $i++)
		{
			$number_users[$i] = $i;
		}
		$this->set('number_users', $number_users);

		$this->set('times', Helper\Date::times());
	}

	public function action_not_found() {
		
	}
}